<{include file="public/header.html"}>
		<div class="xinsu-right">
			<div class="xinsu-right-content">
				<div class="xinsu-data-content">
					<div class="xinsu-title">
						<span class="layui-breadcrumb">
							<a><cite>当前位置</cite></a>
							<a><cite>资金明细</cite></a>
						</span>
					</div>
					<form class="layui-form xinsu-form" action="" method="get">
						<div class="layui-form-item">
						    <div class="layui-inline">
						      	<label class="layui-form-label xinsu-form-label">账号类型</label>
						      	<div class="layui-input-inline xinsu-input-inline">
							        <select name="demo_account">
										<option value="2">全部</option>
										<option value="0" <{if $demo_account == 0}>selected<{/if}>>正式</option>
										<option value="1" <{if $demo_account == 1}>selected<{/if}>>试玩</option>
									</select>
						        </div>
						    </div>
						    <div class="layui-inline">
						    	<label class="layui-form-label xinsu-form-label">搜索条件</label>
								<div class="layui-input-block xinsu-input-block2">
								    <input type="text" name="username" value="<{if $username != '0'}><{urldecode($username)}><{/if}>" class="layui-input" placeholder="帐号 / 真实姓名"/>
								</div>
						    </div>
						   <button class="layui-btn xinsu-btn">查询</button>
							<span>记录总数：共 <{$total}> 条</span>
						</div>
					</form>
					<div class="layui-form xinsu-form">
						<table class="layui-table">
							<thead>
								<tr>
									<th>ID</th>
									<th>代理商</th>
									<th>帐号</th>
									<th>资金</th>
									<th>上次资金</th>
									<th>额度</th>
									<th>上次额度</th>
									<th>盈亏</th>
									<th>上次盈亏</th>
									<th>摘要</th>
									<th>日期</th>
									<th>操作</th>
								</tr> 
							</thead>
							<tbody>
								<{if empty($list) == false}>
								<{foreach $list as $val}>
								<tr>
									<td><{$val.id}></td>
									<td><{$val.agent_name}></td>
									<td><a class="xinsu-fontcolor-blue xinsu-user" href="javascript:;" data="<{$val.uid}>"><{$val.username}></a></td>
									<td class="xinsu-fontcolor-red"><{$val.finance}></td>
									<td class="xinsu-fontcolor-green"><{$val.old_finance}></td>
									<td class="xinsu-fontcolor-red"><{$val.amount}></td>
									<td class="xinsu-fontcolor-green"><{$val.old_amount}></td>
									<td class="xinsu-fontcolor-red"><{$val.gain}></td>
									<td class="xinsu-fontcolor-green"><{$val.old_gain}></td>
									<td style="text-align:left"><{$val.remark}></td>
									<td><{$val["addtime"]}></td>
									<td>
										<{if $val.status == 0}>
										<a class="xinsu-fontcolor-blue xinsu-amend xinsu-delete" href="javascript:;" data="<{$val.id}>">删除</a>
										<{elseif $val.status == 1}>
										<em class="xinsu-fontcolor-red">已删除</em>
										<{/if}>
									</td>
								</tr>
								<{/foreach}>
								<{else}>
								<tr>
									<td colspan="12">暂无数据</td>
								</tr>
								<{/if}>
							</tbody>
						</table>
					</div>
					<div class="xinsu-page">
						<div class="xinsu-show">
							<{$page}>
						</div>
						<div class="xinsu-clear"></div>
					</div>
				</div>
			</div>
		</div>
<{include file="public/footer.html"}>
